#ifndef LIVEVIEWTHREAD_H
#define LIVEVIEWTHREAD_H

#include <QThread>
#include "GpioPort.h"

#define RELOAD_MSCSECS_TIMEOUT		200000 // bylo 50000

class LiveViewThread : public QThread {
    Q_OBJECT

public:
	/* functions */
    explicit LiveViewThread(QObject *parent = 0);

	void run();
	void stop();

signals:
	void reloadImage();

public slots:

private:
	/* data */
	bool stopped;
	GpioPort *gpioPort;
};

#endif // LIVEVIEWTHREAD_H
